import socket

# 创建套接字
# socket.AF_INET用于网络间的进程通信
# socket.SOCK_STREAM 基于TCP协议
s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# socket.SOCK_STREAM 基于UDP协议
s2 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

print(s1)
